gui/tray: Hide resume sync for all/pause sync for all menu item if there are no confi...
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 11 Mar 2025 08:06:26 +0000 (16:06 +0800)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 13 Mar 2025 10:31:45 +0000 (10:31 +0000)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/tray/CurrentAccountHeaderButton.qml

index ac9d88a65e1f33ac6b5db44419410d9f832498fe..787470f9aa8dc92c8277ca6b1bedebe8bd9508d0 100644 (file)
@@ -104,8 +104,11 @@ Button {
 
         MenuItem {
             id: syncPauseButton
+            height: Systray.anySyncFolders ? implicitHeight : 0
             font.pixelSize: Style.topLinePixelSize
             hoverEnabled: true
+            enabled: Systray.anySyncFolders
+            visible: Systray.anySyncFolders
             onClicked: Systray.syncIsPaused = !Systray.syncIsPaused
             Accessible.role: Accessible.MenuItem
             Accessible.name: Systray.syncIsPaused ? qsTr("Resume sync for all") : qsTr("Pause sync for all")